NumItem

Section: ET++ class description (n)
Updated: automatically Mon Apr 8 20:18:24 1991
Index Return to Main Contents
 

NAME

NumItem.short - an editable integer number  

DESCRIPTION

A NumItem allows the user to enter an integer value. The allowed format, given as GNU emacs regular expression, is: (+|-)?[0-9]*.
It is possible to restrict the value to a certain range. When the dialog, containing the NumItem, is accepted, the entered value is checked against that range.
A NumItem is often installed in an EnumItem. In this case the NumItem can also have an incremental step which is added, respectively subtracted when the up or down button of the EnumItem is pressed. So the user can choose between entering a value directly or using the EnumItem to cycle through the allowed range.
See the class GotoDialog how to create a NumItem, and especially how to use it together with the EnumItem.
See also the class FloatItem.


classes are never derived from NumItem.
class NumItem is often reused directly.
class NumItem contains 13 methods.

owner of class:
nobody.
baseclasses:
EditTextItem
flags:
ClipperFlags

 

INSTANCE VARIABLES

inc (private int)
The increment value is added or subtracted from the current value if the NumItem is installed in an EnumItem or if the method Incr, respectively the method Decr is called directly.

maxVal (private int)
the allowed maximum value. It can be accessed with the method GetRange and the method SetRange.

minVal (private int)
the allowed minimum value. It can be accessed with the method GetRange and the method SetRange.

 

INSTANCE METHOD LIST

client interface
Decr
GetInc
GetRange
GetValue
Incr
NumItem
SetInc
SetRange
SetValue

implementation
PrintOn
ReadFrom
SendDown
Validate

 

CATEGORIES

Simple Dialog Items

 

FILES

declaration:
NumItem.h

 

HISTORY

joe@csesbg.at  Thu Sep 05 12:49 1991 MET DST


 

Index

NAME
DESCRIPTION
INSTANCE VARIABLES
INSTANCE METHOD LIST
CATEGORIES
FILES
HISTORY

This document was created by man2html, using the manual pages.
Time: 00:40:26 GMT, March 30, 2022